﻿<%@ Page Language="C#" MasterPageFile="~/WebManager/manager.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="WebManager.Function.Portal.List" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> 
    <div>
        <asp:DropDownList ID="PortalFilter" Width="150px"  runat="server" AutoPostBack="true" OnSelectedIndexChanged="PortalFilter_SelectedIndexChanged">
             <asp:ListItem Value="1=1">所有</asp:ListItem>           
        </asp:DropDownList>
    </div>
    <div style="float: left">
        <div style="float: left; width: 350px">
        </div>
        <div style="float: right">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;          
            <asp:Button ID="Delete" runat="server" Text="删除" OnClick="Delete_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
          </div>
    </div>
    <div>       
        <div>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" BorderStyle="None"
                BorderWidth="1px" BorderColor="#CCCCCC" BackColor="White" CellPadding="3" Width="100%"
                PageSize="15" AllowPaging="true" 
                OnPageIndexChanging="GridView1_PageIndexChanging" 
               >
                <HeaderStyle Font-Size="9pt" Font-Names="宋体" Font-Bold="True" ForeColor="Black" BackColor="SkyBlue">
                </HeaderStyle>
                <SelectedRowStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedRowStyle>
                <RowStyle ForeColor="Black" BackColor="White"></RowStyle>
                <Columns>
                    <asp:BoundField DataField="PortalID" HeaderText="PortalID" ReadOnly="True" SortExpression="PortalID" />
                    <asp:BoundField DataField="PortalName" HeaderText="Portal名称" ReadOnly="True" SortExpression="PortalName" />
                    <asp:BoundField DataField="ColumnName" HeaderText="栏目名称" ReadOnly="True" SortExpression="ColumnName" />
                     <asp:HyperLinkField DataTextField="DocTitle" Target="_blank" HeaderText="文章标题" DataNavigateUrlFormatString="..\..\..\c.aspx?id={0}"
                    DataNavigateUrlFields="DocID" />
                   <asp:BoundField DataField="CTime" HeaderText="创建日期" ReadOnly="True" SortExpression="CTime"
                    DataFormatString="{0:yyyy-MM-dd}" />
                     <asp:BoundField DataField="PLevelName" HeaderText="优先级" ReadOnly="True" SortExpression="PLevel" />
                  
                    <asp:TemplateField HeaderText="选择">
                        <ItemTemplate>
                            <input type="checkbox" id="selectCB" name="selectCB" value="<%# DataBinder.Eval(Container.DataItem,"PortalID")%>;<%# DataBinder.Eval(Container.DataItem,"DocID")%>">
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <AlternatingRowStyle BackColor="#E0E0E0" BorderColor="DarkGray" BorderStyle="Dashed"
                    BorderWidth="1px" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>

